package view;

import javax.swing.JPanel;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.JLabel;
import java.awt.Font;
import java.awt.Color;
import javax.swing.SwingConstants;
import javax.swing.JButton;
import javax.swing.JSeparator;
import javax.swing.JTextField;
import javax.swing.LayoutStyle.ComponentPlacement;

import cliente.ClienteImp;

public class PaAumentosPreciosEmpresaDeTransporte extends JPanel {
	private static final long serialVersionUID = 1L;
	private JTextField textField;
	private JTextField txtCuitempresa;

	/**
	 * Create the panel.
	 * @param cliente 
	 */
	public PaAumentosPreciosEmpresaDeTransporte(ClienteImp cliente) {
		
		JLabel lblAumentoDeprecios = new JLabel("Aumento dePrecios");
		lblAumentoDeprecios.setHorizontalAlignment(SwingConstants.LEFT);
		lblAumentoDeprecios.setForeground(Color.BLUE);
		lblAumentoDeprecios.setFont(new Font("Sylfaen", Font.BOLD | Font.ITALIC, 18));
		
		JButton btnActualizarPrecios = new JButton("Actualizar Precios");
		
		JButton button_1 = new JButton("Cancelar");
		
		JSeparator separator = new JSeparator();
		
		JLabel lblPorcentajeDeAumento = new JLabel("Porcentaje de aumento ");
		
		textField = new JTextField();
		textField.setColumns(10);
		
		JLabel lblCuitEmpresa = new JLabel("Cuit Empresa");
		
		txtCuitempresa = new JTextField();
		txtCuitempresa.setColumns(10);
		GroupLayout groupLayout = new GroupLayout(this);
		groupLayout.setHorizontalGroup(
			groupLayout.createParallelGroup(Alignment.LEADING)
				.addGroup(groupLayout.createSequentialGroup()
					.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)
						.addGroup(groupLayout.createSequentialGroup()
							.addContainerGap()
							.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)
								.addGroup(groupLayout.createSequentialGroup()
									.addComponent(lblAumentoDeprecios, GroupLayout.PREFERRED_SIZE, 199, GroupLayout.PREFERRED_SIZE)
									.addGap(4)
									.addComponent(btnActualizarPrecios, GroupLayout.PREFERRED_SIZE, 127, GroupLayout.PREFERRED_SIZE)
									.addGap(6)
									.addComponent(button_1, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
								.addComponent(separator, GroupLayout.PREFERRED_SIZE, 440, GroupLayout.PREFERRED_SIZE)))
						.addGroup(groupLayout.createSequentialGroup()
							.addGap(6)
							.addComponent(lblPorcentajeDeAumento, GroupLayout.PREFERRED_SIZE, 126, GroupLayout.PREFERRED_SIZE)
							.addPreferredGap(ComponentPlacement.RELATED)
							.addComponent(textField, GroupLayout.PREFERRED_SIZE, 86, GroupLayout.PREFERRED_SIZE))
						.addGroup(groupLayout.createSequentialGroup()
							.addContainerGap()
							.addComponent(lblCuitEmpresa)
							.addPreferredGap(ComponentPlacement.RELATED)
							.addComponent(txtCuitempresa, GroupLayout.PREFERRED_SIZE, 94, GroupLayout.PREFERRED_SIZE)))
					.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
		);
		groupLayout.setVerticalGroup(
			groupLayout.createParallelGroup(Alignment.LEADING)
				.addGroup(groupLayout.createSequentialGroup()
					.addContainerGap()
					.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)
						.addComponent(lblAumentoDeprecios, GroupLayout.PREFERRED_SIZE, 24, GroupLayout.PREFERRED_SIZE)
						.addGroup(groupLayout.createSequentialGroup()
							.addGap(1)
							.addComponent(btnActualizarPrecios))
						.addGroup(groupLayout.createSequentialGroup()
							.addGap(1)
							.addComponent(button_1)))
					.addGap(8)
					.addComponent(separator, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
					.addGap(19)
					.addGroup(groupLayout.createParallelGroup(Alignment.BASELINE)
						.addComponent(lblCuitEmpresa)
						.addComponent(txtCuitempresa, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
					.addPreferredGap(ComponentPlacement.RELATED)
					.addGroup(groupLayout.createParallelGroup(Alignment.BASELINE)
						.addComponent(lblPorcentajeDeAumento)
						.addComponent(textField, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
					.addContainerGap(184, Short.MAX_VALUE))
		);
		setLayout(groupLayout);

	}
}
